package com.example.xaop.config;

import com.example.xaop.factorybean.MyFactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.PropertySource;

/**
 * @author xingyulai
 * @date 2024/3/9 5:18 PM
 * @description
 **/
@Configuration
@EnableAspectJAutoProxy
public class AppConfig {


    @Bean("iservice")
    public MyFactoryBean myFactoryBean() {

        MyFactoryBean myFactoryBean = new MyFactoryBean("com.example.xaop.factorybean.IService");

        return myFactoryBean;
    }


}
